<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:rg="http://www.ruijie.com.cn/faces/ui"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:a4j="http://richfaces.org/a4j"
	template="/layout/contentLayout.xhtml">

	<ui:param name="param_pageTitle"
		value="#{messages.luyuan_crm_menu_order}" />
	<ui:param name="param_navigationUrl"
		value="/luyuan/promotion/navigationPromotion.jsf" />

	<ui:define name="road">
		<span>会员级别</span>
	</ui:define>

	<!-- content -->
	<ui:define name="content">

		<h:form id="orderShip">
			<rg:titlePanel headerTitle="会员级别" style="margin-top: 10px;" needButton="true" readonly="false">
				<ui:define name="panelBody">
					<rg:table tableId="memberIntegralPromotionTable"
						value="#{memberIntegralPromotionAction.tableModel}" var="item">
						<rg:column property="memberLevel" title="会员级别" sortable="false" messagePrefix="luyuan_crm_member_memberLevel_" converter="#{messageConverter}" />
						<rg:column property="totalIntegral" title="晋级条件" sortable="false" />
						<rg:column property="discount" title="享受折扣" sortable="false" />
						<rg:column property="birthIntegral" title="生日积分" sortable="false" />
						<rg:column property="dailyCare" title="日常关怀" converter="#{booleanConverter}" sortable="false" />
						<rg:column property="healthKnowledgeSharing" title="健康知识分享" converter="#{booleanConverter}" sortable="false" />
						<rg:column property="oneByOneCare" title="一对一指导" converter="#{booleanConverter}" sortable="false" />
						<rg:column title="#{messages.luyuan_crm_operator}">
							<ul class="links">
								<li>
									<h:outputLink value="#" onclick="UI.instance.showDialog({id:'updateProduct', src:'/luyuan/promotion/updateMemberLevel.jsf?memberLevel=#{item.memberLevel}'});">修改</h:outputLink>
								</li>
							</ul>
						</rg:column>
					</rg:table>
				</ui:define>
			</rg:titlePanel>
		</h:form>
		<a:form>
			<a:jsFunction name="reRenderMemberIntegralPromotionTable" reRender="memberIntegralPromotionTable"/>
		</a:form>
	</ui:define>
</ui:composition>